//
//  ResponseObject.m
//  RequestTest
//
//  Created by xntech on 13-8-19.
//  Copyright (c) 2013年 xntech. All rights reserved.
//

#import "ResponseObject.h"

@implementation ResponseObject
@synthesize data = _data;
@synthesize errorMessage = _errorMessage;
- (id)initWithData:(NSData *)d
{
    self = [super init];
    if (self)
    {
        NSError  *_error;
        _data = [d retain];
        _responseObj = [[NSJSONSerialization JSONObjectWithData:_data options:NSJSONReadingMutableContainers error:&_error] retain];
        if (_error != nil)
        {
            
        }
        else
        {
            
        }
    }
    return self;
}
- (void)dealloc
{
    [_data release];
    [_responseObj release];
    [_errorMessage release];
    [super dealloc];
}
@end
